package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_work")
public class OrderWorkDo extends Model<OrderWorkDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 流转状态   0 未审核  1 已审核  2已处理 3已完成
     */
    @TableField("status")
    private Integer status;

    /**
     * 单号
     */
    @TableField("work_number")
    private String workNumber;

    /**
     * 工单类型 来自码表
     */
    @TableField("work_type")
    private Long workType;

    @TableField("shop_id")
    private Long shopId;

    @TableField("company_id")
    private Long companyId;

    @TableField("storage_id")
    private Long storageId;

    /**
     * 操作内容
     */
    @TableField("content")
    private String content;

    /**
     * 系统备注
     */
    @TableField("sys_tips")
    private String sysTips;

    @TableField("file_id")
    private String fileId;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
